package jmine.tec.web.wicket.component;

import org.apache.wicket.markup.html.form.CheckGroup;
import org.apache.wicket.markup.html.form.CheckGroupSelector;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * {@link CheckGroupSelector} em formato de Panel para poder adicionar em outros lugares
 * 
 * @author takeshi
 */
public class InlinedCheckGroupSelector extends Panel {

    /**
     * C'tor
     * 
     * @param id String
     */
    public InlinedCheckGroupSelector(String id) {
        super(id);
        this.add(new CheckGroupSelector("checkBoxSelector"));
    }

    /**
     * Construtor.
     * 
     * @param id id
     * @param checkGroup {@link CheckGroup}
     */
    public InlinedCheckGroupSelector(String id, CheckGroup<?> checkGroup) {
        super(id);
        this.add(new CheckGroupSelector("checkBoxSelector", checkGroup));
    }
}
